package com.ruoyi.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 省市区
 * @TableName atb_district
 */
@TableName(value ="atb_district")
@Data
public class AtbDistrict implements Serializable {
    /**
     * 区划信息id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 父级挂接id
     */
    private Integer pid;

    /**
     * 区划名称
     */
    private String name;

    /**
     * 级次id 0:省/自治区/直辖市 1:市级 2:县级
     */
    private Integer level;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}